<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>流程管理</title>

    <!-- Bootstrap -->
    <link th:href="@{/bootstrap/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/css/content.css}" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
</head>
<body>

<!--路径导航-->
<ol class="breadcrumb breadcrumb_nav">
    <li>首页</li>
    <li>报销管理</li>
    <li class="active">我的待办事务</li>
</ol>
<!--路径导航-->

<div class="page-content">
    <form class="form-inline">
        <div class="panel panel-default">
            <div class="panel-heading">待办事务列表</div>

            <div class="table-responsive">
                <table class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>任务ID</th>
                        <th>任务名称</th>
                        <th>创建时间</th>
                        <th>办理人</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="t : ${tasks}">
                        <td th:text="${t.getId()}">${task.id}</td>
                        <td th:text="${t.getName()}">${task.name}</td>
                        <td th:text="${#dates.format(t.getCreateTime(),'yyyy-MM-dd HH:mm:ss')}"></td>
                        <td th:text="${emp.getUsername()}">${task.assignee}</td>
                        <td>
                            <a th:href="@{|/leavebill/viewTaskForm/${t.getId()}|}"
                               class="btn btn-success btn-xs"><span class="glyphicon glyphicon-plus"></span>办理任务</a>
                            <a th:href="@{|/leavebill/viewCurrentImage/${t.getId()}|}"
                               target="_blank" class="btn btn-success btn-xs"><span
                                    class="glyphicon glyphicon-eye-open"></span> 查看当前流程图</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </form>

</div>
</body>
</html>